import { useEffect } from 'react';
import { goodsList } from '@/api';
import './index.less';
import DigitalMod from './components/DigitalMod';
import Peoples from './components/Peoples';
import AcMod from './components/AcMod';
import ReportMod from './components/ReportMod';
import Rapid from './components/Rapid';
import GunDongMod from './components/GunDongMod';
import Raptor from './components/Raptor';
import Resources from './components/Resources';
import { useAtomValue } from 'jotai';
import { isPcStore } from '@/stores';

export default function Home() {
  const isPc = useAtomValue(isPcStore);

  useEffect(() => {
    getData();
  }, []);

  // 获取数据
  const getData = async () => {
    // const res: any = await goodsList({});
    // console.log('res: ', res);
  };

  return (
    <div className="homePage page">
      <AcMod isPc={isPc} />
      <DigitalMod isPc={isPc} />
      <Rapid isPc={isPc} />
    </div>
  );
}

/*
<AcMod />
<GunDongMod />
<DigitalMod />
<ReportMod />
<Peoples />
<Rapid />
<Raptor />
<Resources />
*/
